<div class="col-md-12 process-query" style="padding: 0px;">

  <div crumbs config="crumbsConfig" ></div>

  <div class="page-toolbar">
    <div class="portlet-body">
      <div class="row">
        <div class="col-md-12">
          <div class="portlet light">
            <div class="portlet-title">
                <div class="caption font-dark">
                    <i class="htrd-icon-process-result-sm font-dark"></i>
                    <span class="caption-subject bold uppercase">流程结果查询</span>
                </div>
            </div>

            <div class="portlet-body" >

              <!--流程结果-->
              <div class="row">

                <!--全部状态的搜索及展示-->
                <div class="col-md-12">
                  <div class="htrd-list-query-line">
                    <!--搜索条-->
                    <div class="input-group htrd-list-input" >
                      <input type="text" class="form-control" placeholder="请输入流程名称/执行人" style="border: none; height:32px" ng-model="query" >
                      <!-- <span class="input-group-btn">
                        <a href="javascript:;" class="btn submit">
                            <i class="icon-magnifier"></i>
                        </a>
                      </span> -->
                    </div>

                    <div style="float: left; line-height: 34px; margin-left: 10px; border: none;">
                      <label>执行结果 :</label>
                    </div>

                    <!-- 下拉列表 -->
                    <div class="htrd-menu">
                      <dropdownmenu list="resultOptions" default-text="resultSelected" call-back="resultCallBack"></dropdownmenu>
                    </div>

                    <div date-time-picker ></div>

                    <!-- 查询 -->
                    <div ng-class="{true:'htrd-process-list-not-querybtn',false:'htrd-process-list-querybtn'}[isClick]" ng-click="search()" style="float: left; height: 34px;margin-left: 10px;">
                      <i class="htrd-list-query"></i>
                      <span class="htrd-process-list-querytext" >查询</span>
                    </div>
                  </div>
                  <!-- <div style="border-bottom:1px solid #e6e6e6; margin: 10px 0"></div> -->
                  <div class="table-scrollable" >
                    <table class="table table-striped table-bordered table-hover dataTable no-footer dtr-inline htrd-home-table">
                      <thead>
                        <tr>
                          <th ng-repeat="item in headList" ng-bind="item.title" ng-class="[{true: 'sorting'}[item.type !== 'ignore'], {true: 'sorting_asc'}[orderType === item.type && isUp], {true: 'sorting_desc'}[orderType === item.type && !isUp]]"
                            ng-click="changeOrder(item.type)"></th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr class="htrd-home-click" ng-repeat="item in processResult" ng-click="toManagerProcess(item)">
                          <td ng-bind="item.id"></td>
                          <td ng-bind="item.started_at"></td>
                          <td ng-bind="item.ended_at"></td>
                          <td class='htrd-list-ellipsis pipeline_name' ng-bind="item.pipeline_name" ng-attr-title="{{item.pipeline_name}}" ng-click="expression"></td>
                          <td class='htrd-list-ellipsis group_name' ng-attr-title="{{item.group_name}}" ng-bind="item.group_name"></td>
                          <td  ng-bind="item.node_count"></td>
                          <!--<td ng-bind="item.isError"></td>-->
                          <td>{{:: resultParse(item.result_status)['text'] }}</td>
                          <td class='htrd-list-ellipsis notes' ng-attr-title="{{item.result_info}}"  ng-bind="item.result_info || '/'"></td>
                          <td>{{:: item.user }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>

                  <div>
                    <div page></div>
                  </div>



                </div>
              </div>



            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
